<%@ Page language="c#" Codebehind="AsynSearch.aspx.cs" AutoEventWireup="false" Inherits="LutosWeb.AsynSearch" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
	<head>
		<title>AsynSearch</title>
		<meta name="GENERATOR" Content="Microsoft Visual Studio .NET 7.1">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<link href="css/css.css" rel="stylesheet" type="text/css">
		<script language="javascript" src="scripts/branchshow.js" type=text/javascript></script>
		<script src="scripts/prototype.js" type="text/javascript"></script>
		<script src="scripts/effects.js" type="text/javascript"></script>
		<script src="scripts/dragdrop.js" type="text/javascript"></script>
		<script src="scripts/controls.js" type="text/javascript"></script>
		
	</head>
	<body MS_POSITIONING="FlowLayout">
		<form id="Form1" method="post" runat="server">
			<input autocomplete="off" id="query" name="query" size="30" type="text" value='' />
			<span id="indicator1" style="display: none"><img src="image/indicator_arrows.gif" alt="Working..." /></span>
			<div class="auto_complete" id="message_to_auto_complete" style="backgroud:red;"></div>
			<script type="text/javascript">
			function updater(event){
				//if ( event.keyCode==13)
				new Ajax.Updater(
				'message_to_auto_complete', 
				'./PartialServices.aspx?lg=on&query=' + encodeURIComponent($('query').value), 
				{ 
					method: 'post',
					evalScripts: true, 
					onLoading: function(){  Element.show($('indicator1'));}, 
					onSuccess: function(){  Element.hide($('indicator1'));}
				}); 
			}
			$('query').onkeyup =updater;
			$('query').onkeydown =updater;
			$('query').onchange =updater;
			</script>
			<br />
		</form>
	</body>
</html>
